<?php echo $this->Section->main();?>

<?php echo $this->Form->create('User',array('url'=>array('plugin'=>false,'controller'=>'users','action'=>'edit',$this->data['User']['id'])));?>
			<table width="100%" style="padding-top:0px; margin: 0px;" cellpadding="0" cellspacing="0">
				<tr>
					<td align="left" valign="top" style="padding-top:0px; margin: 0px;" width="50%">
						<h3><?php __("Edytuj profil"); ?></h3>
						<?php
							echo $this->Form->hidden('id');
							echo $this->Form->input('first_name',array('label'=>__("Imię",true)));
							echo $this->Form->input('last_name',array('label'=>__("Nazwisko",true)));
							echo $this->Form->input('address1',array('label'=>__("Adres",true)));
							echo $this->Form->input('address2',array('label'=>__("Adres",true)));
							echo $this->Form->input('address3',array('label'=>__("Miasto",true)));
							echo $this->Form->input('address4',array('label'=>__("Kod pocztowy",true)));							
							echo $this->Form->input('email',array('label'=>__("E-mail",true),'readonly'=>true));
						?>							
						</td>
						<td align="left" valign="top" style="padding-top:0px; margin: 0px;" width="50%">
							<h3><?php __("Zmień hasło"); ?></h3>
							
							<?php													
								echo $this->Form->input('old_password',array('label'=>__("Proszę podać dotychczasowe hasło",true),'type'=>'password'));
								echo $this->Form->input('new_password',array('label'=>__("Proszę podać nowe hasło",true),'type'=>'password'));
							?>				
						
					</td>
				</tr>
				<tr>
					<td></td>
					<td>
						<?php echo $this->Form->input('group',array('label'=>__("Typ użytkownika",true),'options'=>$groups));?>
					</td>
				</tr>
			</table>	

<?php echo $this->Form->submit('Zapisz')?>